<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/19
 * Time: 18:53
 */

namespace app\api\model;
use think\Model;

class BaseModel extends Model
{
    public function getImgPrefix($value, $data = [])
    {
        $finaUrl = $value;
        if($data['from'] == 1)  return config('setting.img_prefix').$value;
        return $finaUrl;
    }

}